{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg cleart-list" >
    <!-- 会员列表 -->
    <div class="row wrapper border-bottom white-bg page-heading tkd-list">
        <div class="col-sm-4">
            <h2>tkd设置</h2>
            <ol class="breadcrumb">
                <li><a href="{:url('admin/Index/home')}">主页</a></li>
                <li><a href="#">>基础设置</a></li>
                <li><strong>tkd设置</strong></li>
            </ol>
        </div>
        <div class="col-sm-8 ">
            <div class="title-action form-inline" >
                <a href="javascript:;" class="btn btn-primary btn-danger clear-sys">清除缓存</a>&nbsp;
                <a href="#" class="btn btn-primary tkd-remove"  data-toggle="modal" data-target="#myModal">新增tkd</a>
            </div>
        </div>
    </div>
    <!-- 会员列表 -->
    <div class="wrapper wrapper-content">
        <div class="row">
            <!-- 搜索部分 -->
            <div class="col-sm-6">
                <div class="panel panel-default" >
                    <div class="panel-heading">快速查询</div>
                    <div class="panel-body">
                        <form class="form-horizontal search-form" action="" method="get" >
                            <div class="form-group">
                                <label class="col-xs-2  control-label">类型</label>
                                <div class="col-xs-10 " >
                                    <select class="form-control m-b" name="type" >
                                        <option value="">全部</option>
                                        {if condition="$post['type'] eq ''"}
                                        <option value="1">PC端</option>
                                        <option value="2">移动端</option>
                                        {else /}
                                        <option value="1" {eq name="$post['type']" value="1" }selected="selected" {/eq}>PC端</option>
                                        <option value="2" {eq name="$post['type']" value="2" }selected="selected" {/eq}>移动端</option>
                                        {/if}
                                    </select>
                                </div>
                            </div>

                            <div class="hr-line-dashed"></div>
                            <a href="javascript:;" ><input type="submit" value="搜索" class="search-btn mg-right-10 col-xs-offset-4 btn btn-primary consult-search" /></a>

                        </form>
                    </div>
                </div>
            </div>
    <!-- 会员列表 -->
    <div class="wrapper wrapper-content">
        <!-- 表格主体 -->
            <table class="table table-bordered white-bg">
                <thead>
                    <tr>
                        <th>序号</th>
                        <th >类型</th>
                        <th style="width:200px;">标题</th>
                        <th style="width:200px;">keywords</th>
                        <th style="width:300px;">description</th>
                        <th>所属地址</th>
                        <th>新增时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                 {volist name="list" id="v"}
                   <tr>
                       <td >{$v['tkd_id']}</td>
                       <td >{if condition="$v['type'] eq 1"}
                           <span class="btn btn-xs btn-outline btn-default">PC端</span>
                           {else/}
                           <span class="btn btn-xs btn-outline btn-primary">移动端</span>
                           {/if}</td>
                       <td >{$v['title']}</td>
                       <td style="color: red;">{$v['keywords']}</td>
                       <td>{$v['description']}</td>
                       <td>{$v['tkd_url']}</td>
                       <td>{$v['tkd_addtime']}</td>
                       <td >
                       <a href="#" class="btn btn-xs btn-outline btn-success tkd-edit"  data-toggle="modal" data-target="#myModal" value="{$v['tkd_id']}">编辑</a>&nbsp;&nbsp;
                           <a href="javascript:;" class="btn btn-xs btn-primary btn-danger tkd-delete"  value="{$v['tkd_id']}">删除</a>
                       </td>
                   </tr>
                 {/volist}
                </tbody>
            </table>
            <!-- 分页 -->
            <div class="btn-group">{$page}</div>
    </div>


        <!-- 模态窗口 -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content animated">

                    <!-- 物流-->
                    <div id="logistics-s">
                        <form method="get" class="valid-form form-horizontal order-send" onsubmit="return false;">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                                <h4 class="modal-title">填写信息</h4>
                            </div>

                            <div class="modal-body">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">类型</label>
                                    <div class="col-sm-8 vcheck-abs form-inline" id="select">
                                        <select class="form-control" name="type" >
                                            <option value="1">PC端</option>
                                            <option value="2">移动端</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">所属地址</label>
                                    <div class="col-sm-8 vcheck-abs">
                                        <input type="text" class="form-control" name="tkd_url" value="" datatype="*" placeholder="所属地址" errormsg="" sucmsg=" " />
                                        <h4 class="modal-title" style="color:red;">例如：http://www.elvtuan.com/service/lawletter.html,则填入:service/lawletter</h4>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">标题</label>
                                    <div class="col-sm-8 vcheck-abs">
                                        <input type="text" class="form-control" name="title" value="" datatype="*" placeholder="标题" errormsg="" sucmsg=" " />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">keywords</label>
                                    <div class="col-sm-8 vcheck-abs">
                                        <input type="text" class="form-control" name="keywords" value="" datatype="*" placeholder="keywords" errormsg="" sucmsg=" " />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">description</label>
                                    <div class="col-sm-8 vcheck-abs">
                                        <textarea type="text" style=" height: 117px; width: 369px;" class="form-control" name="description"  placeholder="description" datatype="*" errormsg="" sucmsg=" " ></textarea>
                                    </div>
                                    <div class="form-group">

                                        <div class="col-sm-8 vcheck-abs" style="color:red">
                                            新增与编辑后，若要马上看到前台效果，请清除下缓存，前台在刷新下
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <input type="hidden" name="tkd_id" value=""/>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-white writ-type-remove" data-dismiss="modal">关闭</button>
                                <button type="button" class="submit btn btn-primary tkd-request" >提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

</body>
</html>
{include file="include:js" /}

